using UnityEngine;
using QFramework;

namespace ProjectSurvivor
{
	public partial class hp : ViewController
	{
		void Start()
		{
			// Code Here
		}
		void OnTriggerEnter2D(Collider2D other)
		{
			if (other.GetComponent<CollectableArea>())
			{
				if (Global.Hp.Value == Global.MaxHp.Value)
				{

				}
				else
				{
					AudioKit.PlaySound("hp");
					Global.Hp.Value++;
					this.DestroyGameObjGracefully();
				}
			}
		}
	}
}
